﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NhaCungCap.DAO;
using NhaCungCap.DTO;

namespace NhaCungCap.BUS
{
    public class UserBUS
    {
        public static bool ValidateUser(string UserName, string Password)
        {
            return UserDAO.ValidateUser(UserName, Password);
        }

        public static void GetRoleOfUser(string UserName, ref string UserID, ref string Role)
        {
            UserDAO.GetRoleOfUser(UserName, ref UserID, ref Role);
        }

        public static bool InsertUserSimple(UserDTO user)
        {
            return UserDAO.InsertUserSimple(user);
        }
    }
}